package com.wk.common;

public class Node<T> {
	public T value;
	public Node<T> next;
	public Node<T> pre;
	public Node(T value) {
		super();
		this.value = value;
	}
	public Node() {
	}
	
	public static void print(Node<?> head) {
		StringBuffer sb = new StringBuffer();
		Node<?> curr = head;
		while(curr!=null) {
			sb.append(curr.value);
			curr = curr.next;
		}
		System.out.println(sb.toString());
	}
}
